package com.miplus.ccrm.core.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 案件退回申请表
 * @TableName fi_return
 */
@TableName(value ="fi_return")
@Data
@KeySequence(value ="SEQ_FI_APPLYNUMBER")
public class FiReturn implements Serializable {
    /**
     * 申请编码
     */
    @TableId(type = IdType.INPUT)
    private Integer applynumber;

    /**
     * 关联的案件ID
     */
    private Integer ficaseid;

    /**
     * 对应催记ID
     */
    private Integer tasknumber;

    /**
     * 关联的任务ID
     */
    private String clid;

    /**
     * 申请人
     */
    private String applyusr;

    /**
     * 申请时间
     */
    private Date applydt;

    /**
     * 申请理由
     */
    private String applyreason;

    /**
     * 申请备注
     */
    private String applydsc;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 审核时间
     */
    private Date confirmdt;

    /**
     * 审核人
     */
    private String confirmusr;

    /**
     * 审核意见
     */
    private String confirmdsc;

    /**
     * 取消时间
     */
    private Date canceldt;

    /**
     * 取消人
     */
    private String cancelusr;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FiReturn other = (FiReturn) that;
        return (this.getApplynumber() == null ? other.getApplynumber() == null : this.getApplynumber().equals(other.getApplynumber()))
            && (this.getFicaseid() == null ? other.getFicaseid() == null : this.getFicaseid().equals(other.getFicaseid()))
            && (this.getTasknumber() == null ? other.getTasknumber() == null : this.getTasknumber().equals(other.getTasknumber()))
            && (this.getClid() == null ? other.getClid() == null : this.getClid().equals(other.getClid()))
            && (this.getApplyusr() == null ? other.getApplyusr() == null : this.getApplyusr().equals(other.getApplyusr()))
            && (this.getApplydt() == null ? other.getApplydt() == null : this.getApplydt().equals(other.getApplydt()))
            && (this.getApplyreason() == null ? other.getApplyreason() == null : this.getApplyreason().equals(other.getApplyreason()))
            && (this.getApplydsc() == null ? other.getApplydsc() == null : this.getApplydsc().equals(other.getApplydsc()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getConfirmdt() == null ? other.getConfirmdt() == null : this.getConfirmdt().equals(other.getConfirmdt()))
            && (this.getConfirmusr() == null ? other.getConfirmusr() == null : this.getConfirmusr().equals(other.getConfirmusr()))
            && (this.getConfirmdsc() == null ? other.getConfirmdsc() == null : this.getConfirmdsc().equals(other.getConfirmdsc()))
            && (this.getCanceldt() == null ? other.getCanceldt() == null : this.getCanceldt().equals(other.getCanceldt()))
            && (this.getCancelusr() == null ? other.getCancelusr() == null : this.getCancelusr().equals(other.getCancelusr()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getApplynumber() == null) ? 0 : getApplynumber().hashCode());
        result = prime * result + ((getFicaseid() == null) ? 0 : getFicaseid().hashCode());
        result = prime * result + ((getTasknumber() == null) ? 0 : getTasknumber().hashCode());
        result = prime * result + ((getClid() == null) ? 0 : getClid().hashCode());
        result = prime * result + ((getApplyusr() == null) ? 0 : getApplyusr().hashCode());
        result = prime * result + ((getApplydt() == null) ? 0 : getApplydt().hashCode());
        result = prime * result + ((getApplyreason() == null) ? 0 : getApplyreason().hashCode());
        result = prime * result + ((getApplydsc() == null) ? 0 : getApplydsc().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getConfirmdt() == null) ? 0 : getConfirmdt().hashCode());
        result = prime * result + ((getConfirmusr() == null) ? 0 : getConfirmusr().hashCode());
        result = prime * result + ((getConfirmdsc() == null) ? 0 : getConfirmdsc().hashCode());
        result = prime * result + ((getCanceldt() == null) ? 0 : getCanceldt().hashCode());
        result = prime * result + ((getCancelusr() == null) ? 0 : getCancelusr().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", applynumber=").append(applynumber);
        sb.append(", ficaseid=").append(ficaseid);
        sb.append(", tasknumber=").append(tasknumber);
        sb.append(", clid=").append(clid);
        sb.append(", applyusr=").append(applyusr);
        sb.append(", applydt=").append(applydt);
        sb.append(", applyreason=").append(applyreason);
        sb.append(", applydsc=").append(applydsc);
        sb.append(", status=").append(status);
        sb.append(", confirmdt=").append(confirmdt);
        sb.append(", confirmusr=").append(confirmusr);
        sb.append(", confirmdsc=").append(confirmdsc);
        sb.append(", canceldt=").append(canceldt);
        sb.append(", cancelusr=").append(cancelusr);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}